<?php

namespace App\Http\Controllers\API;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class FileController extends Controller
{
    //
    public function upload(Request $request)
	{
		$path = $request->file('img')->store('public');
		$pathArr = explode('/', $path);
		return ['path' => '/storage/'.$pathArr[1]];
	}
}
